{extend name="base" /}
{block name="body"}
<div class="layui-card">
  <div class="layui-card-body">
    <blockquote class="layui-elem-quote layui-text">
      权限组管理：<span class="text-danger"></span>管理员权限分配<span class="text-danger"></span>
    </blockquote>
    <div class="layui-form-item">
      <button class="layui-btn layui-btn-normal open-popup" data-title="{$Think.lang.add}" data-url="{:url('add')}"><i class="fa fa-plus"></i>{$Think.lang.add}</button>
    </div>
    <table class="layui-table layui-form" lay-skin="line">
      <thead>
        <tr>
          <th>{$Think.lang.id}</th>
          <th>{$Think.lang.Name}</th>
          <th>{$Think.lang.Describe}</th>
          <th>{$Think.lang.CreateTime}</th>
          <th>{$Think.lang.Status}</th>
          <th>{$Think.lang.Handle}</th>
        </tr>
      </thead>
      <tbody>
        {volist name="list" id="v" empty="$empty"}
        <tr>
          <td>{$i}</td>
          <td>{$v.name}</td>
          <td>{$v.description}</td>
          <td>{$v.create_time}</td>
          <td><input type="checkbox" name="status" value="{$v.id}" lay-skin="switch" lay-filter="*" lay-text="开启|禁用" data-url="{:url('edit')}" {if $v.status eq 1}checked{/if}></td>
          <td>
              <button class="layui-btn layui-btn-xs layui-btn-normal open-popup" data-title="{$Think.lang.edit}" data-url="{:url('edit', ['id' => $v.id])}"><i class="fa fa-edit"></i>{$Think.lang.edit}</button>
              <button class="layui-btn layui-btn-danger ajax-del layui-btn-xs" data-title="{$Think.lang.drop}" data-url="{:url('del', ['id' => $v.id])}"><i class="fa fa-trash-o"></i>{$Think.lang.drop}</button>
          </td>
        </tr>
        {/volist}
      </tbody>
    </table>
    <div class="page">{$list|raw}</div>
  </div>
</div>
{/block}
{block name="js"}
{/block}